From 408a757b7ddb6beafcd61e267e59d957d5698523 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sat, 4 Nov 2017 19:27:06 -0500 Subject: [PATCH] Ref isnan from cstd namespace. --- grtcirc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grtcirc.cc b/grtcirc.cc index 2f6102f35..d590bfe58 100644 --- a/grtcirc.cc +++ b/grtcirc.cc @@ -22,6 +22,7 @@ #include "defs.h" #include "grtcirc.h" +#include #include #include #include @@ -85,7 +86,7 @@ double gcdist(double lat1, double lon1, double lat2, double lon2) res = asin(res); - if (isnan(res) || (errno == EDOM)) { /* this should never happen: */ + if (std::isnan(res) || (errno == EDOM)) { /* this should never happen: */ errno = 0; /* Math argument out of domain of function, */ return 0; /* or value returned is not a number */ } -- 2.30.2